<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"
	import="com.service.SysManager,com.beans.Adv,com.vo.Site,org.springframework.web.context.support.WebApplicationContextUtils;"%>
<%@ include file="inc/taglibs.jsp"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%>
<script type="text/javascript">
ddsmoothmenu.init( {
	mainmenuid : "ddsmoothmenu", //menu DIV id
	orientation : 'h', //Horizontal or vertical menu: Set to "h" or "v"
	classname : 'ddsmoothmenu', //class added to menu's outer DIV
	//customtheme: ["#1c5a80", "#18374a"],
	contentsource : "markup" //"markup" or ["container_id", "path_to_menu_file"]
});
</script>
<%/**
	if (application.getAttribute("site") == null) {
		Site site = (Site) application.getAttribute("site");
		site = Site.getInstance();
		org.springframework.web.context.WebApplicationContext wac = null;
		try {
			wac = WebApplicationContextUtils
					.getRequiredWebApplicationContext(this
							.getServletContext());
		} catch (Exception e) {
			e.printStackTrace();
			wac = WebApplicationContextUtils
					.getRequiredWebApplicationContext(getServletConfig()
							.getServletContext());
		}
		SysManager sys = (SysManager) wac.getBean("sysManager");
		site.setMenu(sys.getMenuDao().getMenuList());
		com.beans.Site s = (com.beans.Site) sys.getMenuDao().findAll(
				com.beans.Site.class).get(0);
		site.setAddress(s.getAddress());
		site.setCopyright(s.getCopyright());
		site.setDescription(s.getDescription());
		site.setKeywords(s.getKeywords());
		site.setLogo(s.getLogo());
		site.setName(s.getName());
		site.setAdvList(sys.getMenuDao().findAll(Adv.class));
		site.init();
		application.setAttribute(com.util.Const.ADMIN_URL,sys.getAdminDao().getUrl());
		application.setAttribute("site", site);
	}**/
%>
<c:if test="${admin!=null}"><!-- 
<div class="line_B" align="right" >
	
		<a href="siteEdit.do" target="_blank">基本设置</a> |
		<a href="menuFrame.do" target="_blank">菜单管理</a> |
		<a href="codeList.do" target="_blank">编码信息</a> |
		<a href="advList.do" target="_blank">广告管理</a> |
		<a href="news.do?classid=99" target="_blank">新闻公告</a> |
		<a href="excuteSQL.do?pwd=job123" target="_blank">执行SQL</a> |
		<a href="rollerFrame.do" target="_blank">角色管理</a> |
		<a href="AdminPwd.do" target="_blank">修改密码</a> |
		<a href="AdminLoginout.do">【${admin.realName}】退出</a>
		<a href="#">帮助</a>
</div> -->
</c:if>
<div class="line_L" align="right" style="width: 995px; margin: 2px auto;">
	<a href="queryUserList.do">人才查询</a> |
	<a href="queryPositionList.do">职位查询</a> |
	<a href="queryCompanyList.do">公司查询</a> |
	<c:if test="${user==null}">
		<a href="Userlogin.jsp">个人登陆</a> | <a href="UserReg.jsp">注册</a> |
	</c:if>
	<c:if test="${user!=null}">
		<a href="Home.do">[ ${user.realName} ]</a>
		<a href="userloginout.do">退出</a>
	</c:if>
	<c:if test="${company==null}">
		<a href="Companylogin.jsp">企业登陆</a> | <a href="CompanyReg.jsp">注册</a> |
	</c:if>
	<c:if test="${company!=null}">
		<a href="Home.do">[ ${company.cName} ]</a>
		<a href="companyloginout.do">退出</a>
	</c:if>
	<a href="javascript:;"
		onclick="window.external.AddFavorite(location.href,'内蒙古人才信息服务网');">收藏本站</a>
	<a href="http://localhost"
		onClick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://localhost');">设为首页</a>&nbsp;
</div>
<div class="logoNav">
	<jsp:include page="advUpLogo.jsp"></jsp:include>
	<table style="width: 100%;" cellpadding="0" cellspacing="0">
		<tr>
			<td valign="middle" align="center">
				<img alt="" src="${site.logo}" id="logo">
			</td>
			<td valign="middle">
				<center><jsp:include page="advRightLogo.jsp"></jsp:include>
				</center>
			</td>
		</tr>
	</table>
	<div id="ddsmoothmenu" class="ddsmoothmenu">
		${site.menuHtml }
		<br style="clear: both" />
	</div>
</div>